import VXETable from "vxe-table";
import TagList from "../components/TagList";

VXETable.renderer.add('TagList', {
    // 默认显示模板
    renderDefault (h, renderOpts, params) {
        const { row, column } = params;
        const { attrs, showTag, tagField, tagTextFun, events } = renderOpts;
        return [
            h(TagList, {
                attrs,
                props: {
                    params: {
                        row, column
                    },
                    showTag,
                    tagField,
                    tagTextFun,
                    events,
                },
            })
        ];
    }
});
